package com.znsd.stu.service.impl;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.znsd.entitys.Cwj_SpecialtyInfo;
import com.znsd.stu.dao.Cwj_SpecialtyDao;
import com.znsd.stu.service.Cwj_SpecialtyService;
@Service
public class Cwj_SpecialtyServiceImpl implements Cwj_SpecialtyService{
	@Autowired
	private Cwj_SpecialtyDao Specialty;
	
	
	@Override
	public List<Cwj_SpecialtyInfo> getAll() {
		// TODO Auto-generated method stub
		return Specialty.getAll();
	}


	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return Specialty.getCount();
	}


	@Override
	public void insert(String specialty_name, Date createDate, Integer userId, Integer state) {
		// TODO Auto-generated method stub
		Specialty.insert(specialty_name, createDate, userId, state);
	}


	@Override
	public Cwj_SpecialtyInfo checkId(Integer sId) {
		// TODO Auto-generated method stub
		return Specialty.checkId(sId);
	}


	@Override
	public void update(Integer speId, String specialty_name, Integer state) {
		// TODO Auto-generated method stub
		Specialty.update(speId, specialty_name, state);
	}


	@Override
	public void delete(Integer sId) {
		// TODO Auto-generated method stub
		Specialty.delete(sId);
	}


	@Override
	public List<Cwj_SpecialtyInfo> getAllByState() {
		// TODO Auto-generated method stub
		return Specialty.getAllByState();
	}

}
